package Config;

use utf8;

our $params = {
    ageing => 24, # in hours

    ftp => {
        user    => 'anonymous',
        pass    => 'searcher__',
        timeout => 2,
    },

    db => {
        dsn  => 'dbi:mysql:database=robosearch;host=localhost;port=3306;',
        user => 'root',
        pass => 'xreswlnb2',
    },

    hosts_checker => {
        log_dir   => './logs/hosts_checker',
        log_level => 'all',
        lock_file => './scratch/lock/hosts_checker.pid',
        networks  => [ qw(
                81.89.188.0/23
                217.197.9.0/24
                81.89.186.0/23
                81.89.178.0/23
            )
        ],
        max_threads => 10,
    },

    crawler_manager => {
        log_dir   => './logs/crawler_manager',
        log_level => 'all',
        lock_file => './scratch/lock/crawler_manager.pid',
    },

    crawler => {
        scratch_dir => './scratch/crawler',
        output_dir  => './output/crawler',
    },

    filter => {
        scratch_dir       => './scratch/filter',
        output_dir        => './output/filter',
        memoize_requested => 0,
    },

    database_builder => {
        log_dir   => './logs/build',
        log_level => 'all',
        lock_file => './scratch/lock/database_builder.pid',
    },
};
